﻿using MC.Warehouse.Core;
using MC.Warehouse.Models;
using System;

namespace MC.Warehouse.ViewModels
{
	public class CategogyViewModel : UserControlViewModel
	{
        private const string UcPartialName = "CategogyListView";
        private const string UcPartialCaption = "Categogy list";

        internal override void Initialize()
        {
            throw new NotImplementedException();
        }

        internal override void Refresh()
        {
            throw new NotImplementedException();
        }

        internal override void Clean()
        {
            throw new NotImplementedException();
        }

        internal override void New()
        {
            
        }

        internal override void Copy()
        {
            throw new NotImplementedException();
        }

        internal override void Delete()
        {
            throw new NotImplementedException();
        }

        internal override void Search()
        {
            TabbarManager.OpenTab(UcPartialName, UcPartialCaption);
        }

        private CategogyModel _categogy;
        public override BaseModel Model
        {
            get
            {
                return _categogy;
            }
            set
            {
                _categogy = value as CategogyModel;
            }
        }
    }
}